<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page import="java.io.FileOutputStream"%>
<%@ page import="java.io.IOException"%>
<%@ page import="org.jdom.Document"%>
<%@ page import="org.jdom.Element"%>
<%@ page import="org.jdom.output.Format"%>
<%@ page import="org.jdom.output.XMLOutputter"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<link rel="stylesheet" href="../../css/style.css" type="text/css">

<script type="text/javascript" src="../js/httpRequest.js"></script>
<script type="text/javascript">
	

	  function send_check(n)
	 {
	 	var f = document.f;
	 	if (f.x_id.value == '')
	 	{
	 		alert('제목을 입력하세요');
	 		f.subject.focus();
	 		return false;
	 	}	 	
	 	f.submit();	
	 }  
	 	
	function check()
	 {
		
		var x_id = document.view.test.options[document.view.test.selectedIndex].value

		var url = "../community/admin.do?x_id="+x_id;
				
		view.method = "POST";
		view.action = url;
		view.submit();
		
	/* 	for(i=0;i<document.view.test.value.length;i++)
	  {
	   alert(document.view.test.options[document.view.test.selectedIndex].value)
	  }
	 */ }
</script>


</HEAD>
<BODY>
${x_id}




<form name="view" method="post" action="../community/admin.do">
<select name="test" id="x_id">
       <option value="1">sensor1</option>
       <option value="2">sensor2</option>
       <option value="3">sensor3</option>
</select>
 
<input type="button" value="확인" onClick="check()">
</form>
	<!-- <form action="" id="f">
<table width="690" border="0" cellspacing="0" cellpadding="0">
	<tr>
	<td align="center" style="padding-top: 40px">
		<select name="search_key" >
			<option value="1">1</option>
			
			<option value="2">2</option>
			<option value="3">3</option>
			
		</select>
		
	 <input type="button" class="pink_m_button"  value="검색" onclick="search()" >
	</td> 
	
	</tr>


</table>
</form> -->


<%-- <form action="../community/admin.do" name="f" method="post" >	
	<input type="hidden" name="menu_no" value="${param.menu_no }">
	<input type="hidden" name="cate_no" value="${param.cate_no }">
	<input type="hidden" name="title_no" value="${param.title_no }"> 
	<input type="hidden" name="x_id" value="${param.x_id}"> 
		<select name="x_id"  id="x_id">
			
			<option value=1>1</option>
			<option value=2>2</option>
			<option value=3>3</option>
			
		</select> --%>
		
		<!-- <!-- writeForm -->
		<!--  <table border="0" cellpadding="0" cellspacing="0" width="600">
		<tr height="30">
			<td>제목</td>
			<td colspan="2">
				<input name="x_id" id="x_id" type="text" size="75">
			</td>
		</tr>
		 
		
	</table>  -->
	
	
	<!-- 버튼 -->
	 <!-- <table width="600">
		<tr align="center">
			<td align="center" style="padding-top: 5px">
			<input type="button" class="pink_button" value="등록" onClick="send_check(this.form)">
			
		</tr>
	</table>
</form>
 -->
		<table width="700" class="tb_outside1" style="padding: 10px;">
		
			
			
			<%-- 
				<c:forEach var="bvo" items="${range_list}">
		<tr style="color: white;" >
				<td class="td_padding"><strong>${x_id}</strong></td>
				<td class="td_padding"><strong>${xvo.x_co}</strong></td>
				<td class="td_padding"><strong>${xvo.x_temp}</strong></td>
		</tr>
		</c:forEach> --%>
	
			
			
			
 			<tr>
				<td colspan="2" class="tr_bottom"></td>
			<!-- 	<td colspan="2">
				<input name="x_id" id="x_id" type="text" size="75">
			</td> -->
			</tr>

			
			<tr class="tr_bottom"> 
				<td class="td_padding"><strong>${xvo.x_id}</strong></td>
				<td class="td_padding"><strong>Co: ${xvo.x_co}</strong></td>
				<td class="td_padding"><strong>Temperature: ${xvo.x_temp}</strong></td>
				
 		
				
		
			
</table>			

<%-- <c:forEach var="xvo" items="${x_list}">
		
			<tr style="color: red;" >
			
			<td >
			<a href="../community/board_view.do?b_no=${x_id}
						&menu_no=${menu_no}
						&cate_no=${cate_no}
						&title_no=${title_no}">
					<strong style="color: red;">${xvo.x_id }</strong>
					<strong style="color: red;">${xvo.x_co }</strong>
					<strong style="color: red;">${xvo.x_temp }</strong>
					<!-- 리플수 -->
					
				</a>
			</td>
			</tr>
		
	</c:forEach>
			
 --%>

</BODY>
</HTML>
